@extends('layouts.admin')

@section('title', '添加角色')

@section('content')
    <div id="pad-wrapper" class="new-user">
        <div class="row header">
            <div class="col-md-12">
                <h3>添加角色</h3>
            </div>
        </div>
        @if (count($errors) > 0)
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        <div class="row form-wrapper">
            <!-- left column -->
            <div class="col-md-9 with-sidebar">
                <form class="form-horizontal" role="form" method="post" action="/admin/roles"
                      enctype="multipart/form-data">
                    <div class="form-group">
                        <label for="inputName1" class="col-md-2 control-label">角色名称</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" name="title" placeholder="角色名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-8">
                            <button type="submit" class="btn btn-primary">保存</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
@endsection